/**
 * 
 */
package bpel.variables;

import java.util.HashMap;

import org.dom4j.Document;

import bpel.types.BPELType;

/**
 * @author Maurice & Topia
 *
 */
public class BPELMessageVariable extends BPELVariable {
	private BPELType messageType;
	private String name;
	private HashMap<String, HashMap<String, BPELVariable>> parts;

	public BPELMessageVariable(BPELType messageType, String name, HashMap<String, HashMap<String, BPELVariable>> parts) {
		super();
		this.messageType = messageType;
		this.name = name;
		this.parts = parts;
	}

	public String query(String part, String query) {
		//TODO
		System.out.println("TODO implement 'query' for BPELMessageVariable");
		return "";
	}

	public void set(String part, String query, String value) {
		//TODO
		System.out.println("TODO implement 'set' for BPELMessageVariable");
	}

	@Override
	public String toString() {
		return messageType.getName() + " : " + name;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public String query(String query) {
		//TODO
		System.out.println("TODO : implement 'query' for BPELMessageVariable");
		return "";
	}

	@Override
	public void set(String query, String value) {
		// TODO	
		System.out.println("TODO : implement 'set' for BPELMessageVariable");
	}

	@Override
	public void parse(String XMLDescription) {
		System.out.println("TODO implement BPELMessageVariable parsing method");
	}

	@Override
	public Document getXMLDescription() {
		System.out.println("TODO implement BPELComplexVariable getXMLDescriprion method");
		return null;
	}
}
